package models

import (
	"time"
)

func (MediaAccount) TableName() string {
	return "media_account"
}

type MediaAccount struct {
	ID             int       `gorm:"primarykey" json:"id"`
	CreatedAt      time.Time `json:"created_at"`
	UpdatedAt      time.Time `json:"updated_at"`
	AdvertiserId   int64     `json:"advertiser_id"`
	AdvertiserName string    `json:"advertiser_name"`
	Status         int       `gorm:"default:1" json:"status"`
	AccessToken    string    `json:"access_token"`
	RefreshToken   string    `json:"refresh_token"`
	MediaAccountId int       `json:"media_account_id"`
	MediaId        int       `json:"media_id"`
	ManagerId      int       `json:"manager_id"`
	CompanyId      int       `json:"company_id"`
	GroupId        int       `json:"group_id"`
	TeamId         int       `json:"team_id"`
	Timezone       string    `json:"timezone"`
	Currency       string    `json:"currency"`
}
